// 全量工具列表，用于搜索功能使用
// 请保持路径与 pages 下的路由一致（以 '/' 开头）
export const allTools = [
  // text-tools（示例）
  { id: 101, name: '文本转拼音', description: '将中文文本转换为拼音，支持多种格式', path: '/text-tools/pinyin' },
  { id: 102, name: '简体繁体转换', description: '中文简繁体互转', path: '/text-tools/traditional' },
  { id: 103, name: '文本排序', description: '对文本进行排序', path: '/text-tools/sort' },
  { id: 104, name: '文本替换', description: '对文本进行替换', path: '/text-tools/replace' },
  { id: 105, name: '文本去重', description: '对文本进行去重', path: '/text-tools/remove-duplicate' },
  { id: 107, name: '文本比较', description: '对文本进行比较', path: '/text-tools/compare' },
  { id: 108, name: '计数器', description: '对文本进行计数', path: '/text-tools/counter' },
  { id: 109, name: '文本反转', description: '对文本进行反转', path: '/text-tools/reverse' },
  { id: 110, name: '在线剪切板', description: '对文本进行剪切和粘贴', path: '/text-tools/clipboard' },
  { id: 111, name: '免费在线OCR', description: '提供在线免费批量Ocr文字识别服务，支持多种语言和图片格式', path: '/text-tools/ocr' },

  // image-tools
  { id: 201, name: '图片压缩', description: '压缩图片文件大小，保持最佳质量', path: '/image-tools/compress' },
  { id: 202, name: '图片裁剪', description: '裁剪图片到指定尺寸', path: '/image-tools/crop' },
  { id: 203, name: '图片合并', description: '合并多张图片为一张', path: '/image-tools/merge' },
  { id: 204, name: '图片转换格式', description: '在 PNG、JPG、WEBP 等格式之间转换', path: '/image-tools/convert' },
  { id: 205, name: '图片缩放', description: '调整图片分辨率和尺寸', path: '/image-tools/resize' },
  { id: 206, name: 'GIF 转换', description: '将图片转换为 GIF 格式', path: '/image-tools/gif-maker' },
  { id: 207, name: '取色器', description: '从图片中提取颜色', path: '/image-tools/color-picker' },
  { id: 208, name: '水印', description: '为图片添加水印', path: '/image-tools/watermark' },
  { id: 209, name: '翻转', description: '为图片添加翻转效果', path: '/image-tools/rotate' },
  { id: 210, name: '九宫格、多格切图', description: '九宫格、多格切图', path: '/image-tools/split' },
  { id: 211, name: '在线抠图', description: 'AI免费在线抠图', path: '/image-tools/remove-bg' },
  { id: 212, name: '在线提取网页图片', description: '在线提取网页中的所有图片', path: '/image-tools/webpage-extractor' },

  // encode-tools
  { id: 301, name: 'Base64 编解码', description: '文本与 Base64 编码互转', path: '/encode-tools/base64' },
  { id: 302, name: 'URL 编解码', description: '对 URL 进行编码/解码', path: '/encode-tools/url' },
  { id: 303, name: 'MD5 哈希', description: '计算文本的 MD5 哈希值', path: '/encode-tools/md5' },
  { id: 304, name: 'SHA 哈希', description: '计算文本的 SHA 哈希值', path: '/encode-tools/sha' },
  { id: 305, name: 'HTML 编码', description: '文本与 HTML 实体编码转换', path: '/encode-tools/html' },
  { id: 306, name: 'JSON 格式化', description: 'JSON 数据的格式化与压缩', path: '/encode-tools/json' },
  { id: 307, name: '时间戳转换', description: '时间戳（秒/毫秒）与可读时间互转，支持本地与 UTC、复制与当前时间设置', path: '/encode-tools/timestamp' },

  // generator-tools
  { id: 401, name: '二维码生成', description: '生成自定义二维码', path: '/generator-tools/qrcode' },
  { id: 402, name: '条形码生成', description: '生成常见条形码格式', path: '/generator-tools/barcode' },
  { id: 403, name: 'UUID 生成器', description: '生成标准 UUID', path: '/generator-tools/uuid' },
  { id: 404, name: '随机数生成器', description: '生成指定范围的随机数', path: '/generator-tools/random' },
  { id: 405, name: '哈希 生成器', description: '生成指定文本的哈希值', path: '/generator-tools/hash' },
  { id: 406, name: '密码生成器', description: '生成指定长度的随机密码', path: '/generator-tools/password' },
  { id: 407, name: 'API测试工具', description: '发送请求并查看响应；支持可视化请求头编辑、保存请求历史、响应大小与耗时统计', path: '/generator-tools/api' },

  // video-tools（确保被搜索到）
  { id: 501, name: '视频压缩', description: '压缩视频以减小体积', path: '/video-tools/compress' },
  { id: 502, name: '视频裁剪', description: '裁剪视频画面或片段', path: '/video-tools/crop' },
  { id: 503, name: '录制屏幕', description: '在线录屏并生成视频', path: '/video-tools/recorder' },
  { id: 504, name: '视频转码', description: '改变视频编码与格式', path: '/video-tools/transcode' },
  { id: 505, name: '视频缩放/分辨率', description: '调整视频分辨率与尺寸', path: '/video-tools/resize' },
  { id: 506, name: '视频变速', description: '改变视频播放速度', path: '/video-tools/speed' },
  { id: 507, name: 'm3u8 转 MP4', description: '输入 m3u8 播放列表链接，浏览器端下载分片并使用 ffmpeg.wasm 合并为 MP4，完成后可直接下载（注意 CORS 与性能限制）', path: '/video-tools/m3u8' },
  { id: 508, name: '视频倒放', description: '视频倒放', path: '/video-tools/watermark' },
  { id: 509, name: '视频去水印', description: '视频去水印', path: '/video-tools/reverse' },

  // game-tools（确保被搜索到）
  { id: 601, name: '贪吃蛇', description: '经典贪吃蛇小游戏', path: '/game-tools/snake' },
  { id: 602, name: '飞机大战', description: '简单的飞行射击小游戏', path: '/game-tools/plane' },
  { id: 603, name: '五子棋', description: '在线五子棋对战', path: '/game-tools/gomoku' },
  { id: 604, name: '矿工（采矿）', description: '轻量的挖矿小游戏', path: '/game-tools/miner' },
  { id: 605, name: '2048', description: '经典数字合并游戏 2048', path: '/game-tools/2048' },
  { id: 606, name: '猫咪跑酷', description: '未来城市风格的猫咪跑酷，躲避障碍并尽可能获得高分', path: '/game-tools/cat-runner' },
  { id: 607, name: '瓶子接力', description: '测试你的手速，挑战极限反应时间，看看你有多快！', path: '/game-tools/catch-bottle' },
  { id: 608, name: '射箭', description: '测试你的手速，挑战极限反应时间，看看你有多快！', path: '/game-tools/archery' },
  { id: 609, name: '手速测试', description: '测试你的手速，挑战极限反应时间，看看你有多快！', path: '/game-tools/hand-speed' },
  // live-tools
  { id: 701, name: '实时金价', description: '查询实时黄金价格（含涨跌）', path: '/live-tools/gold' },
  { id: 702, name: '天气查询', description: '查询全国各地实时天气信息', path: '/live-tools/weather' },
  { id: 703, name: '生日祝福', description: '为朋友送上生日祝福，数据来自八八在线', path: '/live-tools/birthday' },
  { id: 704, name: '随机点名', description: '随机点名，八八在线', path: '/live-tools/random-names' },
  { id: 705, name: '扑克麻将计分工具', description: '扑克麻将计分工具', path: '/live-tools/scoreboard' },
  { id: 706, name: '短链接生成', description: '生成短链接，方便分享长链接', path: '/live-tools/short-link' },
  { id: 707, name: '每日羊毛', description: '提供每日羊毛信息，没事赚点零花钱', path: '/live-tools/yangmao' },
  { id: 708, name: '视力测试', description: '视力测试工具，帮助评估视力状况', path: '/live-tools/eye' },


  // ai-tools
  { id: 801, name: '智能对话', description: '与AI进行智能对话', path: '/ai-tools/chat' },
  { id: 802, name: '紫微排盘', description: '生成紫微斗数星盘', path: '/ai-tools/ziwei' },
  { id: 803, name: '八字合婚', description: '生成八字合婚信息', path: '/ai-tools/bzhh' },
  { id: 804, name: '宝宝起名', description: '生成宝宝起名信息', path: '/ai-tools/bbqm' },
  { id: 805, name: '八字精批', description: '生成八字精批信息', path: '/ai-tools/bzjp' },
  { id: 806, name: '周易算卦', description: '生成周易算卦信息', path: '/ai-tools/zhouyi' }
]

export default function useAllTools() {
  return {
    allTools
  }
}
